package com.redis.controller;

import com.redis.aop.LimitIPRequest;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;


@RestController
public class TestController {

    @RequestMapping("/demo")
    @LimitIPRequest(limitCounts=3,timeSecond=60)
    public String demo(){

        System.out.println("执行中");

        return "success";
    }
}
